-- GENERATED SPELL FOR [Demon Spirit] --


function spell0_11876(pUnit, Event) --@Summoned Demon,Self--
pUnit:FullCastSpellOnTarget(7741,pUnit)
pUnit:RegisterEvent('Sorts_11876', 533, 1)
end

function Sorts_11876(pUnit, Event)
local choix_sorts_11876 = math.random(0, 0)
if choix_sorts_11876 == 0 then
pUnit:RegisterEvent('spell0_11876', 1, 1)
end
end

function mob11876_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11876', math.random(1500, 3000), 1)
end

function mob11876_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11876_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11876_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11876, 1, 'mob11876_Action')
RegisterUnitEvent(11876, 2, 'mob11876_Leave')
RegisterUnitEvent(11876, 3, 'mob11876_Kill')
RegisterUnitEvent(11876, 4, 'mob11876_Die')
